package com.leyou.order.service;

import com.leyou.order.dto.OrderDTO;
import com.leyou.order.vo.OrderVO;

import java.util.Date;

public interface OrderService {

    /**
     * 保存订单
     * @param orderDTO
     * @return
     */
    Long createOrder(OrderDTO orderDTO);
    /**
     * 根据id查询订单信息
     */
    OrderVO queryOrderById(Long id);
    /**
     * 获取二维码支付超链接
     */
    String getPayUrl(Long id);
    /**
     * 查询支付状态
     */
    Integer queryPayStatus(Long id);

    void closeOverdueOrders(Date deadline);
}
